package com.yxplearn.mybatisplus.deluxe;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Auther     : yxpweb
 * @Date       : 2021/5/22 9:43
 * @Description: 自定义baseMapper
 */
public interface YxpBaseMapper<T> extends BaseMapper<T> {

    void insertAll(@Param(Constants.COLLECTION) Collection<T> idList);

    void replaceInto(T t);

    void insertOrUpdate(T t);

    void replaceIntoList(@Param(Constants.COLLECTION) Collection<T> idList);
}
